//
//  DeliveryPartsTC.m
//  ProjectforHDX
//
//  Created by HDX on 16/8/8.
//  Copyright © 2016年 H.DX. All rights reserved.
//

#import "DeliveryPartsTC.h"

@implementation DeliveryPartsTC
- (instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self s_setupCellView];
        
    }
    return self;
}


- (void)s_setupCellView {
    CGFloat width=SCREEN_WIDTH / 4.f;
    self.nameLab = [[RZCustomLable alloc] initWithFrame:CGRectMake(0, 0, width-20, self.height)];
    self.nameLab.font = CustomFont(13);
    self.nameLab.textColor = [UtilCheck hexStringToColor:@"6c6c6c" alpha:1];
    self.nameLab.textAlignment = NSTextAlignmentLeft;
    [self.contentView addSubview:self.nameLab];
    
    self.codeLab = [[RZCustomLable alloc] initWithFrame:CGRectMake(width-20, 0, width+20, self.height)];
    self.codeLab.font = CustomFont(13);
    self.codeLab.textColor = [UtilCheck hexStringToColor:@"6c6c6c" alpha:1];
    self.codeLab.textAlignment = NSTextAlignmentLeft;
    [self.contentView addSubview:self.codeLab];
    
    self.vsLab = [[RZCustomLable alloc] initWithFrame:CGRectMake(width*2+10, 0, width-20, self.height)];
    self.vsLab.font = CustomFont(13);
    self.vsLab.textColor = [UtilCheck hexStringToColor:@"6c6c6c" alpha:1];
    self.vsLab.textAlignment = NSTextAlignmentLeft;
    [self.contentView addSubview:self.vsLab];
    
    
    self.snLab = [[RZCustomLable alloc] initWithFrame:CGRectMake(width*3-10, 0, width+20, self.height)];
    self.snLab.font = CustomFont(13);
    self.snLab.textColor = [UtilCheck hexStringToColor:@"6c6c6c" alpha:1];
    self.snLab.textAlignment = NSTextAlignmentLeft;
    [self.contentView addSubview:self.snLab];
    
    UILabel *line = [[UILabel alloc] initWithFrame:CGRectMake(10, self.bottom - 0.5f, SCREEN_WIDTH - 20, 0.5f)];
    line.backgroundColor = [UtilCheck hexStringToColor:@"EcEcEc" alpha:1];
    [self.contentView addSubview:line];
    
}

@end
